#include "Common.h"
#include "OptPoint.h"

BEGIN_OPT_NAMESPACE

OptPoint::OptPoint(void)
	: _x(0.0), _y(0.0)
{
	//memset(_coord, 0, sizeof(_coord));
}

OptPoint::OptPoint(double x, double y)
	: _x(x), _y(y)
{
	//_coord[0] = x;
	//_coord[1] = y;
}

OptPoint::~OptPoint(void)
{
}

ostream& operator<<(ostream& stream, const OptPoint& v)
{
	return stream << "{ " << v.x() << " " << v.y() << " }";
}

OptPoint operator* (double d, OptPoint const& v)
{
	return (OptPoint&)v * d;
}

END_OPT_NAMESPACE